home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Think Class Libraries / CommToolbox (modified) / Headers / CTermPaneDef.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-30  |  2.0 KB  |  80 lines  |  [TEXT/KAHL]

  1. /* ∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞
  2.  
  3.     CTermPaneDef.h
  4.     
  5.     Commtoolbox terminal emulation class: local definitions
  6.         
  7.     Ithran Einhorn 1994
  8.     
  9. ∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞ */
  10.  
  11.  
  12. #include <CommResources.h>                        /* Apple includes */ 
  13.  
  14. #include <CBartender.h>                            /* TCL includes */
  15. #include <CClipboard.h>
  16. #include <CCluster.h>
  17. #include <CError.h>
  18. #include <Commands.h>
  19. #include <Constants.h>
  20. #include <CWindow.h>
  21. #include <Global.h>
  22. #include <LongQD.h>
  23. #include <TBUtilities.h>
  24. #include <TCLUtilities.h>
  25. #include "CBitMap.h"
  26.  
  27. #include <stdlib.h>
  28. #include <stdio.h>
  29. #include <string.h>
  30. #include <ctype.h>
  31.  
  32. #include "stringx.h"
  33.  
  34. #include "CTermPane.h"                            /* Other includes */
  35.  
  36. /* Constants & Macros */
  37.  
  38. #define TERM_STR_RES_ID        2200    /* Emulation messages resource ID */
  39.  
  40. #define NO_TOOL_STR_INDEX    1        /* No terminal tool */
  41. #define BAD_TOOL_STR_INDEX    2        /* Bad terminal tool */
  42. #define NO_REC_STR_INDEX    3        /* Terminal record allocation error */
  43. #define CHOOSE_STR_INDEX    4        /* Tool setup error */
  44.  
  45. #define H_CHOOSE_POS        10        /* Setup dialog position */
  46. #define V_CHOOSE_POS        40
  47.  
  48. #define SPACE                0x20    /* Space char */
  49. #define TAB                    0x09    /* Tab char */
  50.  
  51. #define CHAR_DELAY_TICKS    15
  52.  
  53. #define RESET_ALRT_ID        2200
  54.  
  55. #define CACHE_LINE_OFFSET    0        /* amount of vertical offset to apply to cache line */
  56. #define TERMINAL_OFFSET        0        /* amount of vertical offset to apply to terminal */
  57.  
  58. #define kNumCachedLines        128        /* number of lines to cache */
  59.  
  60. #define RgnRect(rgn,rct)    ((*rct)=(*rgn)->rgnBBox)
  61. #define RectHeight(r)        ((r)->bottom-(r)->top)
  62. #define RectWidth(r)        ((r)->right-(r)->left)
  63.  
  64.     /* mnemonic constants for Boolean parameters */
  65.                                             
  66. enum {
  67.     kEraseText = TRUE,
  68.     kDontEraseText = FALSE,
  69.     kUseSelection = TRUE,
  70.     kDontUseSelection = FALSE
  71. };
  72.  
  73. /* Application globals */
  74.  
  75. extern CBartender    *gBartender;
  76. extern CClipboard    *gClipboard;
  77. extern CError        *gError;
  78. extern EventRecord  gLastMouseUp;
  79. extern short        gClicks;            /* Click counter                    */
  80.